'use strict'

const Controller = require('egg').Controller

class TrackUploadController extends Controller {
  async trackUpload() {
    const { ctx } = this
    const { long, lat, imei } = ctx.request.body
    ctx.body = await this.ctx.service.trackUpload.dataProcessing(
      long,
      lat,
      imei
    )
  }

  async query() {
    await this.ctx.service.trackUpload.query()
  }
}

module.exports = TrackUploadController
